package avicit.bdp.dms.tdm.dto;

import avicit.platform6.commons.utils.StringUtils;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.Id;
import avicit.platform6.core.annotation.log.LogField;
import avicit.platform6.core.annotation.log.PojoRemark;
import avicit.platform6.core.domain.BeanDTO;
import avicit.platform6.core.properties.PlatformConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 数据共享_发布范围DTO
 */
@ApiModel(value = "FtdpTdmRelsaseScopeDTO", description = "数据共享_发布范围")
@PojoRemark(table = "bdp_dms_release_scope", object = "FtdpTdmRelsaseScopeDTO", name = "数据共享_发布范围")
public class FtdpTdmRelsaseScopeDTO extends BeanDTO {
  private static final long serialVersionUID = 1L;

  /** 主键 */
  @Id
  @LogField
  @ApiModelProperty(value = "主键", name = "id")
  @FieldRemark(column = "ID", field = "id", name = "主键")
  private String id;

  /** 发布ID */
  @ApiModelProperty(value = "发布ID", name = "tdmReleaseId")
  @FieldRemark(column = "TDM_RELEASE_ID", field = "tdmReleaseId", name = "发布ID")
  private String tdmReleaseId;

  /** 授权单位 */
  @ApiModelProperty(value = "授权单位", name = "authorizedOrg")
  @FieldRemark(column = "AUTHORIZED_ORG", field = "authorizedOrg", name = "授权单位")
  private String authorizedOrg;

  /** 编辑状态 */
  @ApiModelProperty(value = "编辑状态", name = "editStatus")
  @FieldRemark(column = "EDIT_STATUS", field = "editStatus", name = "编辑状态")
  private String editStatus;

  /** 扩展属性 */
  @ApiModelProperty(value = "扩展属性", name = "extAttr")
  @FieldRemark(column = "EXT_ATTR", field = "extAttr", name = "扩展属性")
  private String extAttr;

  /** 状态 */
  @ApiModelProperty(value = "状态", name = "status")
  @FieldRemark(column = "STATUS", field = "status", name = "状态")
  private String status;

  /** 描述 */
  @ApiModelProperty(value = "描述", name = "remark")
  @FieldRemark(column = "REMARK", field = "remark", name = "描述")
  private String remark;

  /** 数据权属 */
  @ApiModelProperty(value = "数据权属", name = "dataPerm")
  @FieldRemark(column = "DATA_PERM", field = "dataPerm", name = "数据权属")
  private String dataPerm;

  /** 数据来源 */
  @ApiModelProperty(value = "数据来源", name = "dataOrigin")
  @FieldRemark(column = "DATA_ORIGIN", field = "dataOrigin", name = "数据来源")
  private String dataOrigin;

  /** 创建时间起 */
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private java.util.Date creationDateBegin;

  /** 创建时间止 */
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private java.util.Date creationDateEnd;

  /** 最后修改时间起 */
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private java.util.Date lastUpdateDateBegin;

  /** 最后修改时间止 */
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private java.util.Date lastUpdateDateEnd;

  /** 密级 */
  @LogField private String secretLevelName;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getTdmReleaseId() {
    return tdmReleaseId;
  }

  public void setTdmReleaseId(String tdmReleaseId) {
    this.tdmReleaseId = tdmReleaseId;
  }

  public String getAuthorizedOrg() {
    return authorizedOrg;
  }

  public void setAuthorizedOrg(String authorizedOrg) {
    this.authorizedOrg = authorizedOrg;
  }

  public String getEditStatus() {
    return editStatus;
  }

  public void setEditStatus(String editStatus) {
    this.editStatus = editStatus;
  }

  public String getExtAttr() {
    return extAttr;
  }

  public void setExtAttr(String extAttr) {
    this.extAttr = extAttr;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public String getDataPerm() {
    return dataPerm;
  }

  public void setDataPerm(String dataPerm) {
    this.dataPerm = dataPerm;
  }

  public String getDataOrigin() {
    return dataOrigin;
  }

  public void setDataOrigin(String dataOrigin) {
    this.dataOrigin = dataOrigin;
  }

  public java.util.Date getCreationDateBegin() {
    return creationDateBegin;
  }

  public void setCreationDateBegin(java.util.Date creationDateBegin) {
    this.creationDateBegin = creationDateBegin;
  }

  public java.util.Date getCreationDateEnd() {
    return creationDateEnd;
  }

  public void setCreationDateEnd(java.util.Date creationDateEnd) {
    this.creationDateEnd = creationDateEnd;
  }

  public java.util.Date getLastUpdateDateBegin() {
    return lastUpdateDateBegin;
  }

  public void setLastUpdateDateBegin(java.util.Date lastUpdateDateBegin) {
    this.lastUpdateDateBegin = lastUpdateDateBegin;
  }

  public java.util.Date getLastUpdateDateEnd() {
    return lastUpdateDateEnd;
  }

  public void setLastUpdateDateEnd(java.util.Date lastUpdateDateEnd) {
    this.lastUpdateDateEnd = lastUpdateDateEnd;
  }

  public String getSecretLevelName() {
    return secretLevelName;
  }

  public void setSecretLevelName(String secretLevelName) {
    this.secretLevelName = secretLevelName;
  }

  @Override
  public String getLogFormName() {
    if (StringUtils.isEmpty(super.logFormName)) {
      return "数据共享_发布范围";
    } else {
      return super.logFormName;
    }
  }

  @Override
  public String getLogTitle() {
    if (StringUtils.isEmpty(super.logTitle)) {
      return "数据共享_发布范围";
    } else {
      return super.logTitle;
    }
  }

  @Override
  public PlatformConstant.LogType getLogType() {
    if (super.logType == null) {
      return PlatformConstant.LogType.module_operate;
    } else {
      return super.logType;
    }
  }
}
